/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.webapp.service;

import java.util.List;
import vn.webapp.dto.DataPage;
import vn.webapp.model.BusyTeachers;
import vn.webapp.model.Teachers;
import vn.webapp.model.TeachersToBusy;

public interface TeachersService {

    public DataPage<Teachers> list();
    
    public Teachers viewDetail(String id);
    
    public Teachers checkExistsEmail(String email, int id);
            
    public int updateTheTeacher(String name, String email, int id);
    
    public int removeTeacher(int id);
    
    public int saveATeacher(String name, String email);
    
    public DataPage<Teachers> filter(int page, int pageSize);
    
    public List<BusyTeachers> getABusyTeacherByTeacherId(int iTeacherId, int iSessionId, int Day);
    
    public DataPage<BusyTeachers> listAllBusyTeachers();
    
    public int editBusyTeacherByTeacherId(int iTeacherId, int iSessionId, int iDayId, int iSlot, int iTimeRange);
    
    //public BusyTeachers checkExistsBusyTeacher(int iTeacherId, int iSessionId, int iDayId);
    
    public int removeBusyTeacher(List<BusyTeachers> oBusyTeachersExists);
    
    public DataPage<TeachersToBusy> getAllTeachersToBusy();
}
